﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WinFormClient
{
    [Serializable]
    public class UserInfo
    {
        string username;
        public string UserName
        {
            get { return username; }
            set { username = value; }
        }
        string password;

        public string Password
        {
            get { return password; }
            set { password = value; }
        }

        public User ToUser()
        {
            User u =  new User();
            u.UserName = this.UserName;
            u.Password = this.Password;
            return u;
        }
    }

    public class User : UserInfo
    {       
        int userid;

        public int UserID
        {
            get { return userid; }
            set { userid = value; }
        }
        
        LoginState state;

        public LoginState State
        {
            get { return state; }
            set { state = value; }
        }

    }
}
